<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cache-control" content="max-age=86400"/>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GBDK 2020 Docs: gbdk-lib/include/msx/hardware.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GBDK 2020 Docs
   &#160;<span id="projectnumber">4.4.0</span>
   </div>
   <div id="projectbrief">API Documentation for GBDK 2020</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('msx_2hardware_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">hardware.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="msx_2hardware_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef _HARDWARE_H</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#define _HARDWARE_H</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ab2767d5f8f0ad35d8c8ee0bb3f4c51c3">   10</a></span>&#160;<span class="preprocessor">#define __BYTES extern UBYTE</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a3b39604bdf93a32e9ff965c1a55f0df8">   11</a></span>&#160;<span class="preprocessor">#define __BYTE_REG extern volatile UBYTE</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7E) VCOUNTER;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7F) PSG;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a6777f1ed2475b5ba6aa60b9a16fa02d3">   17</a></span>&#160;<span class="preprocessor">#define PSG_LATCH      0x80</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ad8a903de6b38e08e1591fc5ef278381c">   19</a></span>&#160;<span class="preprocessor">#define PSG_CH0        0b00000000</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#addc12c4ee03ea787b826e337f1acd317">   20</a></span>&#160;<span class="preprocessor">#define PSG_CH1        0b00100000</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#aaeefb1ac1fb4d0d2324b8ee7f4953226">   21</a></span>&#160;<span class="preprocessor">#define PSG_CH2        0b01000000</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ac760259fb86ee72abb5922018ae0db42">   22</a></span>&#160;<span class="preprocessor">#define PSG_CH3        0b01100000</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a3d806ff027bffa67c4dfc5967f87c1d1">   24</a></span>&#160;<span class="preprocessor">#define PSG_VOLUME     0b00010000</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7F) HCOUNTER;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x98) VDP_DATA;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x99) VDP_CMD;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x99) VDP_STATUS;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a4702e74fffdc57d60c3835e63c665cc1">   32</a></span>&#160;<span class="preprocessor">#define STATF_INT_VBL  0b10000000</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a4a7b807e5e5987302a5315fe5c815ce8">   33</a></span>&#160;<span class="preprocessor">#define STATF_9_SPR    0b01000000</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a6fdd982d805d5af6de0417e24faf027d">   34</a></span>&#160;<span class="preprocessor">#define STATF_SPR_COLL 0b00100000</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a99ca7572e3708ffed188359799045b19">   36</a></span>&#160;<span class="preprocessor">#define VDP_REG_MASK   0b10000000</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">   37</a></span>&#160;<span class="preprocessor">#define VDP_R0         0b10000000</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#aa80cb68338819c004095531d32b70e38">shadow_VDP_R0</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#af69775608c5d3218fb769c4fb370685f">   40</a></span>&#160;<span class="preprocessor">#define R0_DEFAULT     0b00000000</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a1e8f09d03b6556b5a0b80ab09f73feff">   41</a></span>&#160;<span class="preprocessor">#define R0_CB_OUTPUT   0b00000000</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a211faa2e60bc538f9c2227117c50b554">   42</a></span>&#160;<span class="preprocessor">#define R0_CB_INPUT    0b01000000</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a682b95c60d62946ab035a154b3e55b5f">   43</a></span>&#160;<span class="preprocessor">#define R0_IE2_OFF     0b00000000</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a75acf04a0377e398e7d962189eeb5547">   44</a></span>&#160;<span class="preprocessor">#define R0_IE2         0b00100000</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a56819f822caf1e545ff803d41cac3ede">   45</a></span>&#160;<span class="preprocessor">#define R0_IE1_OFF     0b00000000</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ae9ab439a46f9918cc24453cd65f95202">   46</a></span>&#160;<span class="preprocessor">#define R0_IE1         0b00010000</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#adf82e3747a46ce9cfa55134f08f92cdd">   47</a></span>&#160;<span class="preprocessor">#define R0_SCR_MODE1   0b00000000</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ae25b46db59f75ffef8ab56f96f2004b0">   48</a></span>&#160;<span class="preprocessor">#define R0_SCR_MODE2   0b00000010</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#af137a529bc3400139c1ece2dc3a4a2f6">   49</a></span>&#160;<span class="preprocessor">#define R0_SCR_MODE3   0b00000100</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#aebdf04065a0abf79ae8e1016d03caa1f">   50</a></span>&#160;<span class="preprocessor">#define R0_ES_OFF      0b00000000</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a07d8e5a18c957c482218804ab764dab9">   51</a></span>&#160;<span class="preprocessor">#define R0_ES          0b00000001</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">   53</a></span>&#160;<span class="preprocessor">#define VDP_R1         0b10000001</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a542cb696f242df44b0d8e9225d532ef4">shadow_VDP_R1</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a490562a6e4b57d7bf25e8fed3b3f6905">   56</a></span>&#160;<span class="preprocessor">#define R1_DEFAULT     0b10000000</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a143660061646a3f502d03a2251575588">   57</a></span>&#160;<span class="preprocessor">#define R1_DISP_OFF    0b00000000</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#adbfdd7c42539613c371820dffd14906f">   58</a></span>&#160;<span class="preprocessor">#define R1_DISP_ON     0b01000000</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#adf542fd9d2bf9affc6016718e3885473">   59</a></span>&#160;<span class="preprocessor">#define R1_IE_OFF      0b00000000</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a29a2945a9e77ba1f003a2305b7500568">   60</a></span>&#160;<span class="preprocessor">#define R1_IE          0b00100000</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a9a9ba38de4c1a1945957941d83e65a6d">   61</a></span>&#160;<span class="preprocessor">#define R1_SCR_MODE1   0b00010000</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a632c59d1f959cefb5105b101f9a45b34">   62</a></span>&#160;<span class="preprocessor">#define R1_SCR_MODE2   0b00000000</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ad679fb5da13b408fa3548cea82de589c">   63</a></span>&#160;<span class="preprocessor">#define R1_SCR_MODE3   0b00000000</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#aa4062707b9b0f9ff5d1ee982ccc42fe7">   64</a></span>&#160;<span class="preprocessor">#define R1_SPR_8X8     0b00000000</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a8ff9cbec48e95b1074bcd2f926e8b906">   65</a></span>&#160;<span class="preprocessor">#define R1_SPR_16X16   0b00000010</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#accb0781e92bb46145c80d56a97323c13">   66</a></span>&#160;<span class="preprocessor">#define R1_SPR_MAG     0b00000001</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a001151cc1e96c3403a3fb954842a9a20">   67</a></span>&#160;<span class="preprocessor">#define R1_SPR_MAG_OFF 0b00000000</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a2c9f91fcf2aad494a80e967f0c4bb414">   69</a></span>&#160;<span class="preprocessor">#define VDP_R2         0b10000010</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a7f7fa2c0e33c6d515332a50c2acb54e7">shadow_VDP_R2</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a8ce8807a3666fa8c7c93d4834ab22fe3">   72</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x3800  0xFF</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a725647b41b3c8083a7ae8db762ffc880">   73</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x3000  0xFD</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a43ae738f82e8c6e84d30a96fb9c2c792">   74</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x2800  0xFB</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#aa2c53c6a4d12fb0614c1a18c015e39af">   75</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x2000  0xF9</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a08fade3bc2afb94785b0ac50d6959faa">   76</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x1800  0xF7</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a43a631b4692a370b2db6b9d5fc2512e1">   77</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x1000  0xF5</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a64cfebfe759bacd1424ad147931ff5a3">   78</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x0800  0xF3</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#acf804b73635a1bfeb04b7dbeafb7fd9f">   79</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x0000  0xF1</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a2a58ae82037e16756404df4820a23f47">   81</a></span>&#160;<span class="preprocessor">#define VDP_R3         0b10000011</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#ab984056ff9eb011fbd84abdafb3a8bce">shadow_VDP_R3</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a5d1f215594c86a9e3d670f5a7f89e301">   83</a></span>&#160;<span class="preprocessor">#define VDP_R4         0b10000100</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#af9a30a728fedbe7e4c660c448c262e2c">shadow_VDP_R4</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a75e2c9878fe4cc7c86f71d8e8fa09924">   85</a></span>&#160;<span class="preprocessor">#define VDP_R5         0b10000101</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a221db76cb39200a948234330ed309af7">shadow_VDP_R5</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ae973ce797203f9e4bebc10f5010a8fdd">   88</a></span>&#160;<span class="preprocessor">#define R5_SAT_0x3F00  0xFF</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ab0ea6874bcc910239b098025c9761c01">   89</a></span>&#160;<span class="preprocessor">#define R5_SAT_MASK    0b10000001</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a81ae7462829d0fcc65c3c99194a68772">   91</a></span>&#160;<span class="preprocessor">#define VDP_R6         0b10000110</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a8afbdaaf8c6dee4e7482a341351344b4">shadow_VDP_R6</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a1aba84d3beebe43e641766525630d0ad">   94</a></span>&#160;<span class="preprocessor">#define R6_BANK0       0xFB</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a81289f179bb00ade9e4f7221ddff0e46">   95</a></span>&#160;<span class="preprocessor">#define R6_DATA_0x0000 0xFB</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#adcc51095e67b158df848367761d735a4">   96</a></span>&#160;<span class="preprocessor">#define R6_BANK1       0xFF</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ac59ac38e5ec2e23e511f854403d7cbe4">   97</a></span>&#160;<span class="preprocessor">#define R6_DATA_0x2000 0xFF</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#aa82ab1c04cff3363327f3309d09ae638">   99</a></span>&#160;<span class="preprocessor">#define VDP_R7         0b10000111</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a33b3e7c120a579cb729caf588ba1d9a8">shadow_VDP_R7</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#abef00e3cae6f12d97973b318ebbf9737">  101</a></span>&#160;<span class="preprocessor">#define VDP_RBORDER    0b10000111</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a20a977182f6f5f60ee6464e15f05aed0">shadow_VDP_RBORDER</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#aa1a024a7dc26ef40663fe283565bcf50">  104</a></span>&#160;<span class="preprocessor">#define R7_COLOR_MASK  0b11110000</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a3cb38487469808e023fcb331c180c4b9">  106</a></span>&#160;<span class="preprocessor">#define VDP_R8         0b10001000</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#add65b8e5f0b806e563ce27de7348ba31">shadow_VDP_R8</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a9c49833bc96a70b8972027d28c816d2f">  108</a></span>&#160;<span class="preprocessor">#define VDP_RSCX       0b10001000</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#af6a84b0288b045560f83a1944a8c1c3b">shadow_VDP_RSCX</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a294388f3d14b6fec1f1bbeafc7d0f91e">  111</a></span>&#160;<span class="preprocessor">#define VDP_R9         0b10001001</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a1ccce1e3f8acb76170fb752ee40ae659">shadow_VDP_R9</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a3cce162b45d638126c478c5b6f7bcbc7">  113</a></span>&#160;<span class="preprocessor">#define VDP_RSCY       0b10001001</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a292b59055beb22b566b39462da3b7eba">shadow_VDP_RSCY</a>;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a1049d2a3f634380f4dffff619334a504">  116</a></span>&#160;<span class="preprocessor">#define VDP_R10        0b10001010</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#af310a900e3b4b5b5032f4ffd6fa309b0">shadow_VDP_R10</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a98d635ed568cfe9f853eaf7e1707dec4">  119</a></span>&#160;<span class="preprocessor">#define R10_INT_OFF    0xFF</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#adf9e7ec5362058df23e1c0e4c06ad5d6">  120</a></span>&#160;<span class="preprocessor">#define R10_INT_EVERY  0x00</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF0) FMADDRESS;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF1) FMDATA;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF2) AUDIOCTRL;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfc) MAP_FRAME0;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfd) MAP_FRAME1;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfe) MAP_FRAME2;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xff) MAP_FRAME3;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;extern const <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a7093bf38c5e663715f4efed44341502d">_SYSTEM</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a1ac4bf5582e0754ea814c3f51c99a91a">  133</a></span>&#160;<span class="preprocessor">#define SYSTEM_PAL     0x00</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ae6888157a94fca2f1a1b5136494f2e07">  134</a></span>&#160;<span class="preprocessor">#define SYSTEM_NTSC    0x01</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a6b6b917fd4f396ba028bb18631165781">  138</a></span>&#160;<span class="preprocessor">#define VBK_TILES       0</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a418a105f4c7d4bf1cbc556eab72c27ca">  139</a></span>&#160;<span class="preprocessor">#define VBK_ATTRIBUTES  1</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ad3b833661b103edc2648258dd741c92c">  141</a></span>&#160;<span class="preprocessor">#define VDP_SAT_TERM   0xD0</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#if defined(__TARGET_msxdos)</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_X_OFFSET 0</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_Y_OFFSET 0</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_WIDTH 32</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_HEIGHT 24</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 32</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 28</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_MAP_ENTRY_SIZE 2</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_X 0</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_Y -1</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_X 0</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_Y 0</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">#error Unrecognized port</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#ad14c51cdfb347c34c364f54e67dc978d">  158</a></span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8)</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="msx_2hardware_8h.html#a7bd450aa268b881257089cf8cd6697ec">  159</a></span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8)</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aasm_2types_8h_html_a280213815420791851f7e59bdc8a3c95"><div class="ttname"><a href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a></div><div class="ttdeci">UINT8 UBYTE</div><div class="ttdef"><b>Definition:</b> types.h:62</div></div>
<div class="ttc" id="aasm_2types_8h_html_a66d3e9555a86fa871932c5f60834c67e"><div class="ttname"><a href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a></div><div class="ttdeci">#define AT(A)</div><div class="ttdef"><b>Definition:</b> types.h:35</div></div>
<div class="ttc" id="aasm_2types_8h_html_afb3731986211fded0a874086c98ffcc4"><div class="ttname"><a href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a></div><div class="ttdeci">#define SFR</div><div class="ttdef"><b>Definition:</b> types.h:34</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a019bf78a6d586c987aec03af8d20e02f"><div class="ttname"><a href="msx_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a></div><div class="ttdeci">volatile UBYTE VDP_ATTR_SHIFT</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a1ccce1e3f8acb76170fb752ee40ae659"><div class="ttname"><a href="msx_2hardware_8h.html#a1ccce1e3f8acb76170fb752ee40ae659">shadow_VDP_R9</a></div><div class="ttdeci">UBYTE shadow_VDP_R9</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a20a977182f6f5f60ee6464e15f05aed0"><div class="ttname"><a href="msx_2hardware_8h.html#a20a977182f6f5f60ee6464e15f05aed0">shadow_VDP_RBORDER</a></div><div class="ttdeci">UBYTE shadow_VDP_RBORDER</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a221db76cb39200a948234330ed309af7"><div class="ttname"><a href="msx_2hardware_8h.html#a221db76cb39200a948234330ed309af7">shadow_VDP_R5</a></div><div class="ttdeci">UBYTE shadow_VDP_R5</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a292b59055beb22b566b39462da3b7eba"><div class="ttname"><a href="msx_2hardware_8h.html#a292b59055beb22b566b39462da3b7eba">shadow_VDP_RSCY</a></div><div class="ttdeci">UBYTE shadow_VDP_RSCY</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a33b3e7c120a579cb729caf588ba1d9a8"><div class="ttname"><a href="msx_2hardware_8h.html#a33b3e7c120a579cb729caf588ba1d9a8">shadow_VDP_R7</a></div><div class="ttdeci">UBYTE shadow_VDP_R7</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a542cb696f242df44b0d8e9225d532ef4"><div class="ttname"><a href="msx_2hardware_8h.html#a542cb696f242df44b0d8e9225d532ef4">shadow_VDP_R1</a></div><div class="ttdeci">UBYTE shadow_VDP_R1</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a7093bf38c5e663715f4efed44341502d"><div class="ttname"><a href="msx_2hardware_8h.html#a7093bf38c5e663715f4efed44341502d">_SYSTEM</a></div><div class="ttdeci">const UBYTE _SYSTEM</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a7f7fa2c0e33c6d515332a50c2acb54e7"><div class="ttname"><a href="msx_2hardware_8h.html#a7f7fa2c0e33c6d515332a50c2acb54e7">shadow_VDP_R2</a></div><div class="ttdeci">UBYTE shadow_VDP_R2</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a8afbdaaf8c6dee4e7482a341351344b4"><div class="ttname"><a href="msx_2hardware_8h.html#a8afbdaaf8c6dee4e7482a341351344b4">shadow_VDP_R6</a></div><div class="ttdeci">UBYTE shadow_VDP_R6</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_aa80cb68338819c004095531d32b70e38"><div class="ttname"><a href="msx_2hardware_8h.html#aa80cb68338819c004095531d32b70e38">shadow_VDP_R0</a></div><div class="ttdeci">UBYTE shadow_VDP_R0</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_ab984056ff9eb011fbd84abdafb3a8bce"><div class="ttname"><a href="msx_2hardware_8h.html#ab984056ff9eb011fbd84abdafb3a8bce">shadow_VDP_R3</a></div><div class="ttdeci">UBYTE shadow_VDP_R3</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_add65b8e5f0b806e563ce27de7348ba31"><div class="ttname"><a href="msx_2hardware_8h.html#add65b8e5f0b806e563ce27de7348ba31">shadow_VDP_R8</a></div><div class="ttdeci">UBYTE shadow_VDP_R8</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_af310a900e3b4b5b5032f4ffd6fa309b0"><div class="ttname"><a href="msx_2hardware_8h.html#af310a900e3b4b5b5032f4ffd6fa309b0">shadow_VDP_R10</a></div><div class="ttdeci">UBYTE shadow_VDP_R10</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_af6a84b0288b045560f83a1944a8c1c3b"><div class="ttname"><a href="msx_2hardware_8h.html#af6a84b0288b045560f83a1944a8c1c3b">shadow_VDP_RSCX</a></div><div class="ttdeci">UBYTE shadow_VDP_RSCX</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_af9a30a728fedbe7e4c660c448c262e2c"><div class="ttname"><a href="msx_2hardware_8h.html#af9a30a728fedbe7e4c660c448c262e2c">shadow_VDP_R4</a></div><div class="ttdeci">UBYTE shadow_VDP_R4</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
